
Page({
  data: {
    list: []
  },
  onLoad() {
    this.get()
  },
  async get() {
    // 测试网络请求
    const res = await wx.http.get('/announcement')

    this.setData({
      list: res.data
    })

    console.log('获取信息', this.data.list);
  }
})
